import request from "@/utils/request.js";

// 获取动态列表
export const getPoliceServiceWeekReportTableList = (data, query = {}) => {
    return request({
        method: 'post',
        url: '/bussiness/PoliceReport/list',
        params: query,
        data: data,
        isEncrypt: false
    })
}

// 获取动态详情
export const getPoliceServiceWeekReportDetail = (id) => {
    return request({
        method: 'get',
        url: '/bussiness/PoliceReport/info',
        params: {
            id: id
        },
        isEncrypt: false
    })
}

// 更新动态内容
export const updatePoliceServiceWeekReport = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/PoliceReport/edit',
        data: data,
        isEncrypt: false
    })
}

// 新增动态
export const addPoliceServiceWeekReport = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/PoliceReport/add',
        data: data,
        isEncrypt: false
    })
}

// 删除动态
export const deletePoliceServiceWeekReport = (id) => {
    return request({
        method: 'post',
        url: '/bussiness/PoliceReport/remove',
        params: {
            ids: id
        },
        isEncrypt: false
    })
}